﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;

namespace Meqs.Logic.Interface
{
    public interface  IExamCatch
    {
        /// <summary>
        /// 查村报表缓存状态
        /// </summary>
        /// <param name="ht">所需各种参数</param>
        /// <returns>返回0：缓存可用，1：缓存需要重新计算，－1：尚未定义报表参数</returns>
        int CheckCatch(Hashtable ht);
        /// <summary>
        /// 重新计算缓存报表数据
        /// </summary>
        /// <param name="ht">所需要的各类参数</param>
        //void ReSetCatch(Hashtable ht);



    }

    public class ReportCatchBuild
    { 
        /// <summary>
        /// 获取操作方向
        /// </summary>
        /// <param name="op"></param>
        /// <returns></returns>
        public static string  GetTypeString(int op)
        { 
            switch(op)
            {
                case 2:
                    return ">";
                case 1:
                    return ">=";
                case -1:
                    return "<=";
                case -2:
                    return "<";
            }
            return "";
        }
    }
}
